package com.thenmorethings.test;

import java.util.List;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.thenmorethings.entity.Essay;
import com.thenmorethings.service.EssayService;

public class App {

	@Test
	public void test() throws Exception {
		ClassPathXmlApplicationContext cpx = new ClassPathXmlApplicationContext("/applicationContext.xml");
		EssayService as = (EssayService)cpx.getBean("essayService");
		List<Essay> findAll = as.findAll();
		
		System.out.println(findAll);
		
		
	}

}
